<?php

require 'conn.php';

require 'config.php';

require 'inc/function.php';

$ye='products';
 
if ($id==0) $id=RsField('select a_id from '.$language.'_products order by a_order,a_id limit 0,1');

if ($id!=''){

$query=mysql_query('select * from '.$language.'_products where a_id='.$id,$conn);

if (mysql_num_rows($query)>0){

	$row=mysql_fetch_array($query);

 
	$a_name=$row['a_name'];

	$a_content=$row['a_content'];

}

}



?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=1200,initial-scale=0.3,maximum-scale=1.0,user-scalable=yes" />
<?php 
$query=mysql_query('select * from '.$language.'_keywords where k_id=3',$conn);
$row=mysql_fetch_array($query);

$k_name=$row['k_name'];

$k_keyword=$row['k_keyword'];

$k_description=$row['k_description'];
?>
<title><?php echo $a_name."-". $k_name?></title>
<meta name="keywords" content="<?php echo $k_keyword?>" />
<meta name="description" content="<?php echo $k_description?>" />
 <link rel="stylesheet" rev="stylesheet" href="css/global.css" />

<link rel="stylesheet" rev="stylesheet" href="css/style.css" />
<script type="text/javascript" src="js/jq_min.js"></script>
 <script type="text/javascript" src="js/owl.carousel.js"></script>
    <script type="text/javascript" src="inc/function.js"></script>
 
 </head>
<body>
<!-- haeder S-->
<?php require 'header.php'?>
 
<div id="ban" style="background:url(<?php echo RsField('select b_image from '.$language.'_banner where b_id=3')?>) center no-repeat;"></div>

        <div id="center">
        	<div class="main clear_both">
             	<div class="left fl">
	    <div class="about">产品中心</div>
    <div class="list">
        <ul>
        	          
                 <?php
                  $str='';

		$query=mysql_query('select a_id,a_name from '.$language.'_products order by a_order asc');

		if (mysql_num_rows($query)>0){

		while($row=mysql_fetch_array($query)){
			$str.=' <li>';
			if($row['a_id']==$id){
               $str.=' <div class="senior on">';
			}
			else
			{
				               $str.=' <div class="senior">';

				}
			   $str.='<a href="products.php?id='.$row['a_id'].'">'.$row['a_name'].'</a> </div></li> ';
		}

		}
	 
		
 
				 echo $str;
				  ?>
            
              
                    </ul>
    </div>
 
   

</div> 
            	<div class="right fr clear_both">
                <div class="mbx fl">
                <div class="mbtitle"><?php echo $a_name?></div>
                <div class="mbtitle2">当前位置：<a href="index.php">首页</a>&gt;<a href="products.php">产品中心</a>&gt;<?php echo $a_name?></div>
  
    </div> 
                    <div class="clear"></div>
                    <div class="neiwrap">
                            <div class="description">
                                
 <div id="showtext"><?php echo $a_content?></div>
			 
             
             
     						           
                                
                            </div>
                    </div>
                </div>   
            </div>
        </div>
        
        
<?php require 'footer.php'?>


</body>
</html>

